package cn.cjp.day02;

import java.util.Random;

public class UseRandom {

    public static void main(String[] args) {

        Random r =new Random();

        int numone = r.nextInt();
        System.out.println(numone);

        //0到2
        System.out.println(r.nextInt(3));

    }
}
